#!/usr/bin/env python
# -*-coding:UTF-8-*-
# Author: chenzuoqing@126.com
# Create: 2018/8/13 15:31
# File  : router.py

"""

"""

from rest_framework.routers import DefaultRouter
from sqlaudit.views import (DatabaseConfigViewSet, FetchSQLTreater,
                            AuditSQLCheckView, AuditSQLMainView)


sqlaudit_router = DefaultRouter()

sqlaudit_router.register('database', DatabaseConfigViewSet, base_name='database')
sqlaudit_router.register('treaters', FetchSQLTreater, base_name='treaters')
sqlaudit_router.register('sqlcheck', AuditSQLCheckView, base_name='sqlcheck')
sqlaudit_router.register('sqlaudit', AuditSQLMainView, base_name='sqlaudit')
